#include "client.h"
#include <signal.h>


Config config = {
  .rsa_key = R"(-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsGB8biKW1GM/j8swEjJE
njD4kTQMM3Y6l6sUTI66RX7nd7mpDCx4nSAdnUaL889cfuwINuoFhuVl7NMAH6An
qlHdcVNXUxSQ/f+7GRWqLzUhPUYvYrfqW9R1XXjaBdgwUvdBAZxw3LRmqNVNBMEp
XV6gZx+uJ9kBlILi4usE29HO1PJhCgItLvC6ZI0WN3b9ADnsgA0hRyiuGC5CHmdY
oZgvZmanrr/YAAbpyzOXHRDT1TFpHnwiCDW1Gtqo638B17VB1Lb5vvglSEBRXwa3
tTrnIXqVy18yG2pQ94bhzJbPHn9Xvxb+Aw7rx1hOkrH/Kv8KWvYMomnR9nfDsRXe
mwIDAQAB
-----END PUBLIC KEY-----)",
  .tun_dev = "/dev/net/tun",
  .server_ip = "47.74.153.227",
  .gateway_ip = "192.168.0.1",
  .virtual_ip = "192.168.48.1",
  .physics_if = "eth0",
  .virtual_if = "tun-vpn",
  .server_port = 8443,
};

Client* client;


int main (int argc, char** argv) {
  client = new Client(config);
  signal(SIGINT, [] (int sig) {
    client->shutdown();
    abort();
  });
  client->run();
  return 0;
}